package org.codebase.java.designpattern.command;

/**
 * @author:xiaozhichao
 * @date:2018/9/21
 */
public class MyCommand implements Command{

    private Receiver receiver;

    public MyCommand(Receiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void exe() {
        receiver.action();
    }
}
